package com.newcoin.xgb.dto;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

@Data
public class BuyFinManDto {

    @NotNull(message = "用户id不能为空")
    private Long userId;

    @NotBlank(message = "令牌不能为空")
    private String token;

    @NotNull(message = "请输入转入金额")
    private BigDecimal amount;

    @NotNull(message = "理财产品Id")
    private Integer productId;

    @NotBlank(message = "交易密码")
    private String payPwd;
}
